<?php
namespace Controllers;
use Models\User;

class HomeController extends CommonController {

    public function index() {
        $user = new User();

        $data = [
            'msg' => 'Git地址：https://gitee.com/yiibook/21mvc',
            'msg2' => $user->getUserById()
        ];
        return $this->render('home/index', $data);
    }

    public function login() {
        include_once './Views/home/login.php';
    }

    public function doLogin() {
        var_dump($_POST);
    }

}